/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.repository;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.shanhesoft.java.common.core.vo.PageModel;
import com.shanhesoft.java.common.persistence.repository.BaseRepository;
import com.shanhesoft.java.modules.exam.domain.OjProblems;
import com.shanhesoft.java.modules.exam.domain.vo.OjProblemsVo;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 编程题管理Repository 编程题管理
 * @author admin
 * @version 2020-09-26 20:36:04
 */
public interface OjProblemsRepository extends BaseRepository<OjProblems> {
	public IPage<OjProblemsVo> findProblemsVoPage(PageModel pm, @Param(Constants.WRAPPER) QueryWrapper wrapper);
	public OjProblemsVo findProblemsVoById(String id);
	List<Map<String, String>> findQueIdByPaperId(String paperId);
	public IPage<OjProblemsVo> findProblemsVoPageWithCount(PageModel pm, @Param(Constants.WRAPPER) QueryWrapper wrapper);
	public IPage<OjProblemsVo> findProblemsVoPageWithCountByUserId(PageModel pm, @Param(Constants.WRAPPER) QueryWrapper wrapper);
	public List<OjProblemsVo> findProblemsVoPageWithCount(@Param(Constants.WRAPPER) QueryWrapper wrapper);
}
